<?php
session_start();

require_once '../../../serverResources/includes/db/ConnDBUser.php';
require_once '../../../serverResources/includes/classes/Project.php';
include_once '../others/refreshSessionTime.php';
$project=new Project('', '', '', '', '', '');
$success=$project->storeVideo($_SESSION['projectID'], $_POST['url'], $_POST['videoTitle'], $_POST['videoDescription']);
unset($project);

if($success){
	echo 1;
}else{
	echo $success;  //se nao for bem sucedido, mostra a mensagem de erro
}
